const express = require( 'express' );
const router = express.Router()

const stuModel = require( '../db/models/stuModel' )

router.delete( '/del', async ( req, res ) => {
    // console.log(req.body);
    res.setHeader( 'Access-Control-Allow-Headers', 'Content-Type,Access-Control-Allow-Headers,Authorization,X-Requested-With' );
    let data = await stuModel.del(req.body.id);
    res.status( 200 ).send( data );
} );

module.exports = router